package com.yyh.synctool.server.exception.code;

import com.yyh.result.code.ResultCodeInterface;

/**
 * @author xuan
 * @create 2021/12/18
 */
public enum AccessErrorCode implements ResultCodeInterface
{
    // ↓非法身份访问
    ILLEGAL_IDENTITY_ERROR(4000000, "非法身份访问");

    private Integer code;
    private String message;

    private AccessErrorCode(Integer code, String msg) {
        this.code = code;
        this.message = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
